﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User_center/MainContent.Master"
    AutoEventWireup="true" CodeBehind="SupplyPurchaseList.aspx.cs" Inherits="IService.User_center.SupplyPurchaseList" %>
<%@ Register Src="~/InfoControls/Pagination.ascx" TagName="Pagination" TagPrefix="suc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="RightMainContent" runat="server">
    <table id="subtree1" style="display: " width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td>
                <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="40" class="font42">
                            <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="White"
                                class="newfont03">
                                <tr class="CTitle">
                                    <td height="22" colspan="10" align="center" style="font-size: 16px">
                                        供需列表
                                    </td>
                                </tr>
                                <tr align="center" bgcolor="#EEEEEE">
                                    <td>
                                        需求分类
                                    </td>
                                    <td>
                                        行业分类
                                    </td>
                                    <td>
                                        产品名称
                                    </td>
                                    <td>
                                        信息标题
                                    </td>
                                    <td>
                                        说明
                                    </td>
                                    <td>
                                        发布者
                                    </td>
                                    <td>
                                        发布日期
                                    </td>
                                    <td>
                                        查看
                                    </td>
                                </tr>
                                <asp:Repeater ID="rptNewsList" runat="server">
                                    <ItemTemplate>
                                        <tr class="listitems <%#(rptNewsList.Items.Count%2==0?"odd":"even")%>">
                                            <td nowrap="nowrap" class="item80">
                                                <%# GetSupplyPurchaseType((int)Eval("RequestType"), (int)Eval("Type"))%>
                                            </td>
                                            <td nowrap="nowrap" class="item80">
                                                <%#Eval("ProductType")%>
                                            </td>
                                            <td nowrap="nowrap" class="item80">
                                                <%#Eval("ProductName")%>
                                            </td>
                                            <td nowrap="nowrap" class="item80">
                                                <%#Eval("InfoTitle")%>
                                            </td>
                                            <td nowrap="nowrap" class="item80">
                                                <%#GetShortProductDetail(Eval("ProductDetail").ToString())%>
                                            </td>
                                            <td nowrap="nowrap" class="item80">
                                                <%#GetUserNameById(Eval("UserID").ToString())%>
                                            </td>
                                            <td nowrap="nowrap" class="item40">
                                                <%# Convert.ToDateTime(Eval("CreateDate")).ToString("yyyy-MM-dd")%>
                                            </td>
                                            <td class="item40">
                                                <a class="opt" href="#" onclick="viewcontent(<%#Eval("Id")%>)"><span class="icon-sprite icon-view">
                                                </span></a>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>
                        </td>
                    </tr>
                </table>
                <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="6">
                            <img alt="" src="../Admin/Style/images/spacer.gif" width="1" height="1" />
                        </td>
                    </tr>
                    <tr>
                        <td height="33">
                            <suc:pagination id="Pagination" pagesize="12" runat="server"></suc:pagination>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
